import { defHttp } from '@/utils/http/axios'
import { GetAccountInfoModel } from '../../demo/model/accountModel'

enum Api {
  GET_CHART_DATA = '/air/temperatureAndHumidity',
  GET_TABLE_DATA = '/air/temperatureAndHumidityTable',
}

export const getChartData = (params) =>
  defHttp.get<GetAccountInfoModel>({ url: Api.GET_CHART_DATA, params })
export const getTableData = (params) =>
  defHttp.get<GetAccountInfoModel>({ url: Api.GET_TABLE_DATA, params })
